package com.water.camera.activity.camera;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.water.camera.R;

public class SizeTab {
    public TextView tv;
    public ImageView img;

    public SizeTab(TextView tv, ImageView img, View.OnClickListener listener) {
        this.tv = tv;
        this.img = img;
        tv.setOnClickListener(listener);
    }

    public void setSelect(boolean bo) {
        if (bo) {
            tv.setBackgroundResource(R.drawable.bg_33ffffff_solid_8_radius);
            img.setVisibility(View.VISIBLE);
            tv.setAlpha(1f);
        } else {
            tv.setBackground(null);
            img.setVisibility(View.GONE);
            tv.setAlpha(0.7f);
        }
    }
}
